<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateResumesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('resumes', function (Blueprint $table) {
            $table->increments('id');
            $table->string('jobs')->nullable()->comment('应聘岗位');
            $table->string('salary_requirements')->nullable()->comment('薪资要求');
            $table->string('date_of_filling')->nullable()->comment('填表日期');
            $table->integer('wxuser_id')->nullable()->comment('微信用户id');
            $table->integer('status')->default(0)->commit('状态：0: 待审核(默认)1: 待评估2: 待复评3：待审核 4: 聘用5: 候选6: 储备-1: 人才库');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('resumes');
    }
}
